/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-04-17
 * Time: 19:57
 */


class Animal{
    public String name;
    public void eat() {
        System.out.println("我要吃饭");
    }
}
class cat extends Animal{
    @Override
    public void eat() {
        super.eat();
    }
}

public class TestDemo {

    public static void main(String[] args) {

    }

}
